<%@ page language="java" pageEncoding="UTF-8" %>
<%@ include file="/pages/common/taglibs.jsp"%>

<%
	String strErrorMsg = (String)session.getAttribute("LOGIN_ERROR_MESSAGE");
%>

<html>
	<head>
		<%@ include file="/pages/common/meta.jsp" %>
		<title>Product Development Management Login</title>
		<link rel="stylesheet" type="text/css" href="<c:url value="/styles/login.css"/>" />
		
		<!-- import jQuery -->
		<script type="text/javascript" src="<%=request.getContextPath()%>/jQuery/jquery-1.4.2.js"></script>
		<script type="text/javascript" src="<%=request.getContextPath()%>/jQuery/ui/jquery.ui.core.js"></script>
		<script type="text/javascript" src="<%=request.getContextPath()%>/jQuery/ui/jquery.ui.widget.js"></script>
		
		<script>
			$(function(){
				function login(){
					var user = $("#username").attr("value");
					var key = $("#password").attr("value");
					var options = {
						url: '/pdm/auth.htm?method=login',
						data: { username: user, password: key },
						type: 'POST',
						success: function(){
							
						},
						error: function(){
					    	alert("系统异常！");
						}
					};
					$('#login_form').ajaxSubmit(options);
				}
				
				if(<%=strErrorMsg!=null%>)
				{
					$("#error_msg").empty();
					$("#error_msg").append("<%=strErrorMsg%>");
				}
			});
			
		</script>
	</head>
	<body>
		<div class="page" id="divPage">
			<div class="head">
				<a href="http://myivo.ivo.com.cn" target="_blank">MyIvo</a> 
			</div>
			<div class="content">
				<div class="intro intro-1 intro-2" >
					<div class="introtxt introtxt-1">
						<ul>
							
						</ul>
					</div>
				</div>
				<div class="login">
					<h3>登录PDM</h3>
					<form id="login_form" method="post" action="">
						<div class="fi">
							<label class="lb">用户名</label>
							<input id="username" name="username"  type="text" class="ipt-t no-ime" onfocus="this.className+=' ipt-t-focus'" onblur="this.className='ipt-t no-ime'" tabindex="1" />
						</div>
						<div class="fi">
							<label class="lb">密　码</label>
							<input id="password" type="password" class="ipt-t" onfocus="this.className+=' ipt-t-focus'" onblur="this.className='ipt-t no-ime'" name="password" tabindex="2" maxlength="20" />
						</div>
						<div id="error_msg"></div>
						<div class="fi fi-btn">
							<input type="submit" class="ipt-b" value="登　录" onmouseover="this.className+=' ipt-b-hover'" onmouseout="this.className='ipt-b'" name="enter.x" tabindex="4" />
						</div>
						<input type=hidden id="destination" name="destination" value="/pages/pdm/ProductDevelopmentManagement.jsp" />
						
					</form>
					<div class="reg">
						<div>
							<img src="images/login/relation.bmp"/>
						</div>
						<table>
							<tr style="height:20px">
								<td></td>
								<td></td>
							</tr>
							<tr>
								<td>联系电话：  17429</td>
							</tr>
							<tr>
								<td>联系地址：  RD研发大楼二楼</td>
							</tr>
							<tr style="height:10px">
								<td></td>
								<td></td>
							</tr>
						</table>
					</div>
				</div>
				<div class="intro intro-1" id="divIntro">
					<div class="introtxt introtxt-1">
						<ul>
		
						</ul>
					</div>
				</div>
			</div>
			<div class="footer">
				<div>
					<h3></h3>
					<span class="end"></span>
				</div>
				<div class="line">&nbsp;</div>
				<div class="copyright">
					Copyright © 2005-2010 Infovision Optoelectronics (Kunshan) Co., Ltd. All rights reserved.
				</div>
			</div>
		</div>
	</body>
</html>